@import "~common/css/_variables.scss";

// index.js
.search {
  width: 100%;
  height: 100%;
  position: relative;

  .searchInfo {
    padding: 30px;
  }

  .searchNav {
    padding-left: 30px;

    ul {
      display: flex;
      align-items: center;

      li {
        cursor: pointer;
        margin-right: 30px;
        padding-bottom: 4px;
        border-bottom: 4px solid transparent;

        &.active {
          border-bottom: 4px solid $color;
          ;
        }
      }
    }
  }
}

// 热搜榜
.hotList {
  position: fixed;
  top: 60px;
  left: 260px;
  width: 350px;
  height: 500px;
  z-index: 5;
  background-color: #fff;
  padding: 16px 0;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 4px 0 $color;

  .title {
    color: $c666;
    line-height: 1;
    padding-bottom: 24px;
    padding: 0 16px 16px;
  }

  ul {
    color: $c333;

    li {
      display: flex;
      align-items: center;
      padding: 10px 16px;
      cursor: pointer;

      .num {
        width: 36px;
        color: $c999;
        font-size: $fz16;
      }

      .info {
        div {
          span {
            color: $cccc;
            padding: 0 14px;
            font-weight: 400;
          }

          img {
            height: 12px;
            font-size: $fz12;
          }
        }

        p {
          margin-top: 10px;
          color: $c999;
        }
      }

      &:hover {
        background-color: #eee;
      }

      &.active {
        .num {
          width: 36px;
          color: $cff3a3a;
        }

        .info {
          div {
            font-weight: 600;
          }
        }
      }
    }
  }
}

.arrow {
  &::before {
    position: absolute;
    content: "";
    top: -10px;
    left: 24px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid rgba($color: #000000, $alpha: 0.1);
  }

  &::after {
    position: absolute;
    content: "";
    top: -9px;
    left: 24px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid #fafafa;
  }
}

// 搜索建议
.suggest {
  position: fixed;
  top: 50px;
  left: 260px;
  width: 350px;
  // height: 320px;
  z-index: 5;
  color: $c333;
  background-color: #fff;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;

  p {
    padding: 0 16px;
    line-height: 30px;
  }

  .render_box {
    h3 {
      line-height: 30px;
      padding: 0 16px;
      background-color: #f5f5f7;
    }

    ul {
      li {
        padding: 0 16px;
        line-height: 30px;

        &:hover {
          background-color: #eee;
        }
      }
    }
  }
}